What will be the output of the following program?
  
class variable_scope 
    {
        public static void main(String args[]) 
        {
            int x;
            x = 5;
            {
         int y = 6;
         System.out.print(x + " " + y);
            }
            System.out.println(x + " " + y);
        } 
    }

Posted on by